package com.benjaminwan.read.free.model.action

import com.benjaminwan.read.free.model.enums.ActionType
import com.benjaminwan.read.free.model.enums.MouseButton
import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
data class MouseButtonClick @JvmOverloads constructor(
    val which: MouseButton = MouseButton.Left,
    val delayRange: LongRange = (1L..1),
    override val actionType: ActionType = ActionType.MouseButtonClick
) : Action() {
    override fun toString(): String {
        return "鼠标${which.name}键触发, 按下时间:${delayRange} ms"
    }
}